import yaml

def find_by_path(dict, path):
    value = dict
    for key in path.split('.'):
        if key in value:
            value = value[key]
        else:
            value = None
            break
    return value

def read_yaml(file_path):
    with open(file_path, "r",  encoding='utf-8') as f:
        return yaml.safe_load(f)
